/**
 * @author:albert
 */

package com.bkbw.live.battle.business;

public class DistanceObject<T extends GameObject> {
	float distanceSqr;
	float distance;
	T gameObject;
	DistanceObject(T obj, float distanceSqr) {
		gameObject = obj;
		this.distanceSqr = distanceSqr;
	}
	
	public float getDistanceSqr() {
		return distanceSqr;
	}
	public void setDistanceSqr(float distanceSqr) {
		this.distanceSqr = distanceSqr;
	}
	public float getDistance() {
		return distance;
	}
	public void setDistance(float distance) {
		this.distance = distance;
	}
	public T getGameObject() {
		return gameObject;
	}
	public void setGameObject(T gameObject) {
		this.gameObject = gameObject;
	}
}
